load("@rules_java//java:defs.bzl", "java_library")
load("//:testing.bzl", "junit4_test_suites")

package(
    default_applicable_licenses = ["//:license"],
    default_testonly = True,
)

java_library(
    name = "tests",
    testonly = True,
    srcs = glob(["*Test.java"]),
    deps = [
        "//:java_truth",
        "//common:cel_ast",
        "//common:options",
        "//extensions",
        "//extensions:optional_library",
        "//runtime",
        "//runtime:function_binding",
        "//testing/compiled:compiled_expr_utils",
        "@cel_spec//proto/cel/expr/conformance/proto3:test_all_types_java_proto",
        "@maven//:com_google_guava_guava",
        "@maven//:com_google_protobuf_protobuf_java",
        "@maven//:junit_junit",
    ],
)

junit4_test_suites(
    name = "test_suites",
    sizes = [
        "small",
    ],
    src_dir = "src/test/java",
    deps = [":tests"],
)
